<?php
//рус
class App_Module_Admin_Module_Http_Web extends App_Module_Admin_Module_Http
{
    public function Init ()
    {
    	parent::Init();
        Mozg::Layout('admin')->SetTemplate('default');
        return $this;
    }

    protected function AfterFailedLogin()
    {
    	$user = Mozg::User();
		if ($user->IsError())
        {
        	Mozg::Lib('messanger')->createMessage($user->GetErrorMessage(), MESSAGE_ERROR);
        }
    }
    
    protected function AfterSuccessLogin()
    {
    	
    }
    
    protected function AfterSuccessLogout()
    {
        Mozg::Response('http')->setRedirect(_ROOT_URL.Mozg::Request('http')->getRequestUri())->sendHeaders();
        exit();
    }
}